//
//  BLSubListCell.swift
//  BLLiveTelecast
//
//  Created by BigL055 on 16/6/10.
//  Copyright © 2016年 bigL.liveTelecast.com. All rights reserved.
//

import UIKit

class BLSubListCell: UICollectionViewCell {

    var subListItem : BLDouyuRoomDetalModal = BLDouyuRoomDetalModal(){
        didSet{
            let srcURL = NSURL(string: subListItem.room_src!)
            subRoomBtn.userInteractionEnabled = false

            subRoomBtn.setupRoomData(isPhneLive: false,
                                     onlineNumber: subListItem.online,
                                     userName: subListItem.nickname,
                                     roomName: subListItem.room_name,
                                     roomScrUrl: srcURL,
                                     roomID: subListItem.room_id)
        }
    }
    
    @IBOutlet weak var subRoomBtn: BLLiveRoomSingleButton!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

}
